﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System;
using Microsoft.Win32;

namespace ChromeWebTool3
{

    public static class ChromeHelper
    {
        public static string GetChromePath()
        {
            string chromePath = null;
            using (RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe"))
            {
                if (key != null)
                {
                    chromePath = key.GetValue(null) as string;
                }
            }
            return chromePath;
        }
    }
}
